package com.oa.model;


/**
 * 
 * @author Jerry Yan
 * @hibernate.class table="person"
 *
 */
public class Person {
	
	private int id;
	private String name;
	private String gender; // sex
	private String role; // duty
	private String address;
	private String phone;
	private String description;
	private Organization organization;
	
	/**
	 * @hibernate.many-to-one 
	 */
	public Organization getOrganization() {
		return organization;
	}
	public void setOrganization(Organization organization) {
		this.organization = organization;
	}
	/**
	 * @hibernate.id
	 * 		generator-class="native"
	 */
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	/**
	 * @hibernate.property not-null="true"
	 */
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @hibernate.property not-null="true"
	 */
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	/**
	 * @hibernate.property not-null="true"
	 */
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	/**
	 * @hibernate.property not-null="true"
	 */
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	/**
	 * @hibernate.property not-null="true"
	 */
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	/**
	 * @hibernate.property not-null="true"
	 */
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

}
